<html>
<body bgcolor="#eeeeee">
I am a frame.
</body>
<script type="text/javascript">
if (typeof foo != "undefined")
	foo("frame1");
else
	alert("no foo in frame");
	
alert(wmyVal);
wmyVal = 1992;
alert(wmyVal);
	
</script>
</html>